
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
	TEST(should be able to get area)
	{
		Square square(3);
		ASSERT_EQ(9, square.getArea());
	}

	TEST(should be able to get perimeter)
	{
		Square square(3);
		ASSERT_EQ(12, square.getPerimeter());
	}

	TEST(should be able to get area as 49 after change side as 7 )
	{
		Square square(3);
                
                square.setSide(7);
		ASSERT_EQ(49, square.getArea());
	}
	TEST(should be able to get perimeter as 28 after change side as 7)
	{
		Square square(3);
                
                square.setSide(7);
		ASSERT_EQ(28, square.getPerimeter());
	}
};

